import axios from '@/utils/requestKc'


//获取配置信息
export const ManageList = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/common/config-manage/list?parentTag=${data.title}`,
        data
    })
}
//获取俱乐部列表
export const KcNownClub = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/knowclub/kc-club/list?pageNo=${data.pageNum}&pageSize=${data.pageSize}&viewsNumSort=ASC`,
        data
    })
}
//获取文章列表
export const KcArticleList = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/knowclub/kc-club-article/articleList?pageNo=${data.pageNum}&pageSize=${data.pageSize}&viewsNumSort=ASC`,
        data
    })
}
//knowCol登录
export const LoginXp = (data) => {
    return axios({
        method: 'post',
        url: '/knowclub-api/knowclub/kc-client-auth/login',
        data
    })
}
//注册
export const SignInKnownClub = (data) => {
    return axios({
        method: 'post',
        url: '/knowclub-api/knowclub/kc-client-auth/register',
        data
    })
}
//首页的三个图文
export const HomePicture = (data) => {
    return axios({
        method: 'get',
        url: '/knowclub-api/knowclub/kc-home-content/list',
        data
    })
}
//首页的三个图文
export const whykcWork = (data) => {
    return axios({
        method: 'get',
        url: '/knowclub-api/knowclub/kc-work/list',
        data
    })
}
//首页的clubsList
export const clubsList = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/knowclub/kc-club/list?pageNo=${data.pageNum}&pageSize=${data.pageSize}&viewsNumSort=DESC`,
        data
    })
}
//首页的最后一个列表
export const ArticleList = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/knowclub/kc-club-article/articleList?pageNo=${data.pageNum}&pageSize=${data.pageSize}&viewsNumSort=DESC`,
        data
    })
}
//请求俱乐部列表
export const ClubList = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/knowclub/kc-club/list?pageNo=${data.pageNum}&pageSize=8&industryOne=${data.industryOne}&industryTwo=${data.industryTwo}&clubName=${data.clubName}&clubIdSort=DESC&subscriptionSort=${data.subscriptionSort}&FansNumSort=${data.FansNumSort}`,
        data
    })
}
//请求俱乐部列表
export const ClubLists = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/knowclub/kc-club/list?pageNo=${data.pageNum}&pageSize=16&industryOne=${data.industryOne}&industryTwo=${data.industryTwo}&clubName=${data.clubName}&clubIdSort=DESC&subscriptionSort=${data.subscriptionSort}&FansNumSort=${data.FansNumSort}`,
        data
    })
}
//请求俱乐部列表
export const PopularClubList = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/knowclub/kc-club/list?pageNo=${data.pagePopNum}&pageSize=8&viewsNumSort=DESC`,
        data
    })
}
//suggest for you
export const SuggestForYouList = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/knowclub/kc-club/list?pageNo=${data.pageNumStree}&pageSize=8&clubIdSort=DESC&industryOne=&industryTwo=`,
        data
    })
}
//knowClub Contents
export const ShuffleList = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/knowclub/kc-club-article/shuffleList?pageNo=${data.pageNumFour}&pageSize=4`,
        data
    })
}
//knowClub Contents
export const ArticeList = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/knowclub/kc-club-article/articleList?pageNo=${data.pageNum}&pageSize=8&industryOne=${data.industryOne}&industryTwo=${data.industryTwo}&title=${data.clubName}&searchUserId=&topSort=DESC`,
        data
    })
}
//俱乐部创建人信息
export const ClubFounderInformation = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/knowclub/kc-client-auth/getUserInfo?userId=${data.userId}`,
        data
    })
}
//举报用户
export const ReportUsers = (data) => {
    return axios({
        method: 'post',
        url: `/knowclub-api/knowclub/kc-report/create-kc-user`,
        data
    })
}
//ClubsList
export const ClbusList = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/knowclub/kc-club/list?pageNo=${data.pageNum}&pageSize=${data.pageSize}&clubIdSort=DESC&clubUserId=${data.userId}`,
        data
    })
}
//收藏俱乐部
export const CollectionClub = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/knowclub/favorite/favoriteClub?clubId=${data.clubId}&groupId=${data.groupId}`,
        data
    })
}